package com.zp.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zp.common.utils.PageUtils;
import com.zp.mall.product.entity.AttrEntity;
import com.zp.mall.product.vo.AttrEditResponseVo;
import com.zp.mall.product.vo.AttrRequestVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhangpeng
 * @email zhangpeng@aliyun.com
 * @date 2020-10-11 17:08:57
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrRequestVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrTypePath);

    AttrEditResponseVo getDetailAttrInfo(Long attrId);

    void removeAttrByIds(Long[] attrIds);

    void updateAttr(AttrRequestVo attr);

    List<AttrEntity> getAttrsByAttrgroupId(Long attrgroupId);
}

